package com.kc.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kc.bean.LableArticle;
import com.kc.mapper.LableArticleMapper;
import com.kc.service.ILableArticleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-10-22
 */
@Service
public class LableArticleServiceImpl extends ServiceImpl<LableArticleMapper, LableArticle> implements ILableArticleService {

    @Resource
    private LableArticleMapper lableArticleMapper;

    @Override
    public int inster(LableArticle lableArticle) {
        return lableArticleMapper.insert(lableArticle);
    }

    @Override
    public List<LableArticle> getLableArticle(String ArticleId) {
        return lableArticleMapper.getAlllableId(Wrappers.<LableArticle>lambdaQuery().eq(LableArticle::getArticleId,ArticleId));
    }


}
